<%-- 
    Document   : POInternal_all
    Created on : Jan 9, 2009, 8:47:30 AM
    Author     : User
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
            <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
        <title>JSP Page</title>
    </head>
    <body>
        
        <h2>PO Internal ALL</h2>
        <form action="/elpro/poInternal_saveAll.do">
        PO no : <c:out value=""/>
        <br>
        PO Customer :  <input type="text" name="poCustomer" size="10"/>
        <br>
        Customer : <c:out value="${q.spdcf.customer.nama}"/>        
        <br>
        Project Name : <c:out value="${q.spdcf.inquery.project.nama}"/>
        <br>
        Delivery Address : <c:out value=""/>    aaa
        <br>
        Attn : <c:out value=""/>    
        <table>
            <tr class="table_header">
                <th>No</th>
                <th>Code</th>
                <th>Description</th>                
                <th>QTY</th>                
                <th>Note</th>                
            </tr>
            <c:set var="x" value="0"/>          
                <c:forEach items="${q.items}" var="item">
                    <tr>
                        <td>${x+1}.</td>
                        <td>${item.produk.kode}</td>
                        <td>${item.produk.nama}</td>                       
                        <td>${item.jumlah}</td>  
                        <td></td>
                     </tr>
                    <c:set var="x" value="${x+1}"/>
                  
                </c:forEach>               
                <tr class="table_footer">
                    <td colspan="10">PT. Dhemar Nusantara - PT. Rahmi Ida Nusantara</td>
                </tr>
        </table>        
        <table>
            <tr>
                <td>PPn</td>
                <td>:</td>
                <td><c:out value="${q.spdcf.ppn}"/></td>                  
            </tr>
            <tr>
                <td>Transportation</td>
                <td>:</td>
                <td><c:out value="${q.spdcf.transportation}"/></td>                  
            </tr>
             <tr>
                <td>Production Time</td>
                <td>:</td>
                <td>
                    <c:if test="${q.spdcf.productionTime==0}">
                        days after receive this PO in normal condition + Agreement, days <c:out value="${q.spdcf.productionTimeDays}"/>                        
                    </c:if>
                    <c:if test="${q.spdcf.productionTime==1}">
                        days after PO on schedule was done + Agreement, days <c:out value="${q.spdcf.productionTimeDays}"/> 
                    </c:if>
                </td>               
            </tr>     
             <tr>
                <td>Production Condition</td>
                <td>:</td>
                <td>
                    <c:if test="${q.spdcf.productionCondition==0}">
                        Ready Stock
                    </c:if>
                    <c:if test="${q.spdcf.productionCondition==1}">
                        On Schedule
                    </c:if>
                    <c:if test="${q.spdcf.productionCondition==2}">
                        Waiting List
                    </c:if>
                </td>
            </tr>   
            <tr>
                <td>Product Specifiaction</td>
                <td>:</td>
                <td><c:out value="${q.spdcf.inquery.productSpec.nama}"/></td>
            </tr>
            <tr>
                <td>Standart Specifiaction</td>
                <td>:</td>
                <td><c:out value="${q.spdcf.inquery.standartSpec.nama}"/></td>
            </tr>
             <tr>
                <td>Finishing</td>
                <td>:</td>
                <td>
                    <c:if test="${q.spdcf.finishingDays==0}">
                        Hot Dip Galvanized
                    </c:if>
                    <c:if test="${q.spdcf.finishingDays==1}">
                        Electro Galvanized
                    </c:if>
                    <c:if test="${q.spdcf.finishingDays==2}">
                        Power Coating
                    </c:if>
                </td>
            </tr>
            <tr>
                <td>Delivery Mode</td>
                <td>:</td>
                <td>
                    <c:if test="${q.spdcf.deliveryMode==0}">
                        Partial / Progress, <c:out value="${q.spdcf.deliveryModeDesc}"/>
                    </c:if>
                    <c:if test="${q.spdcf.deliveryMode==1}">
                        One delivery(100%), <c:out value="${q.spdcf.deliveryModeDesc}"/>
                    </c:if>                    
                </td>
            </tr>
            <tr>
                <td>Delivery Time</td>
                <td>:</td>
                <td>
                    <c:if test="${q.spdcf.deliveryTime==0}">
                        Partial / Progress, <c:out value="${q.spdcf.deliveryTimeDays}"/>
                    </c:if>
                    <c:if test="${q.spdcf.deliveryTime==1}">
                        One delivery(100%), <c:out value="${q.spdcf.deliveryTimeDays}"/>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="Save"/></td>
            </tr>
            
        
        </table>
            </form>
    </body>
</html>
